
<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8" />
		<title>考勤管理平台</title>
	</head>


    <!--<ul class="layui-nav">
	<a href="">
					<div class="layui-logo">细分数CAREMARK</div>
				</a>
      <li class="layui-nav-item">
        <a href="">控制台<span class="layui-badge">9</span></a>
      </li>
      <li class="layui-nav-item">
        <a href="">个人中心<span class="layui-badge-dot"></span></a>
      </li>
      <li class="layui-nav-item">
        <a href=""><img src="//t.cn/RCzsdCq" class="layui-nav-img">我</a>
        <dl class="layui-nav-child">
          <dd><a href="javascript:;">修改信息</a></dd>
          <dd><a href="javascript:;">安全管理</a></dd>
          <dd><a href="javascript:;">退了</a></dd>
        </dl>
      </li>
    </ul>-->
          
		  
		  
		  
			<div class="layui-header">
			
				<!-- 头部区域（可配合layui已有的水平导航） -->
				
				<ul class="layui-nav">
				
				<li class="layui-nav-item">
				
				<!--<a href="../index.php">
					<img src="../assets/images/logo-login.png" />
				</a>-->
				</li>
					
					<li class="layui-nav-item">
							<a href="javascript:;">系统管理</a>
							<dl class="layui-nav-child">
								<dd><a href="../admin/pages">页面管理</a></dd>
								<dd><a href="../inc/quackenquiry.php">最近一场考试速查</a></dd>
								<dd><a href="../inc/quackknowexamlist.php">成绩先知</a></dd>
							</dl>	
						</li>
                  <li class="layui-nav-item">
						<a href="../admin/user_add.php" class="layTabPlus" tab_url="../admin/user_add.php">邀请注册</a>
					</li>
						
						<?php
			if (isset($_SESSION['power']) and $_SESSION['power']=='admin')
			{
				echo '<li class="layui-nav-item">
							<a href="javascript:;">后台管理</a>
							<dl class="layui-nav-child">
								<dd><a href="../admin/exam_s.php" >考试管理</a></dd>
								<dd><a href="../admin/user_s.php" >用户管理</a></dd>
								<dd><a href="../admin/exchange.php">切换命根子</a></dd>
								<dd><a href="../common/hfslogin.php">手动更新命根子</a></dd>
							</dl>	
						</li>';
						
						echo '<li class="layui-nav-item">
							<a href="javascript:;">探访数据源头</a>
							<dl class="layui-nav-child">
								<dd><a href="../admin/yuelogin.php">阅卷系统</a></dd>
								<dd><a href="../admin/fxlogin.php">分析系统</a></dd>
								<dd><a href="../admin/mainlogin.php">端他老窝</a></dd>
							</dl>	
						</li>';
				
				
			} 
				
				
				
			if (isset($_SESSION['power'])and $_SESSION['power']!='user')
			{
				
				echo '<li class="layui-nav-item">
							<a href="javascript:;">特殊功能</a>
							<dl class="layui-nav-child">
								<dd><a href="../inc/enquiry.php" class="layTabPlus" tab_url="../inc/enquiry.php">无限制成绩查询</a></dd>
								<dd><a href="../inc/quackknowexamlist.php" class="layTabPlus" tab_url="../inc/quackknowexamlist.php">无限制成绩先知</a></dd>
								
							</dl>	
						</li>';
				
				
				} 
			
			
			//$_SESSION['avatar']=$idsearch["avatar"];https://gitee.com/uploads/66/890966_Leytton.png?1512991922
                
			?>	
						
				</ul>
				<ul class="layui-nav layui-layout-right">
					<li class="layui-nav-item">
						<a href="javascript:;">
							<img src="<?php echo $_SESSION['avatar']; ?>" class="layui-nav-img"> <?php echo  $_SESSION['hfsuser'];?> </a>
						<dl class="layui-nav-child">
							<dd>
								<a href="javascript:void(0);"><?php echo  "ID:".$_SESSION['id'];?></a>
							</dd>
							
							<dd>
								<a href="javascript:void(0);"><?php echo  "考号:".$_SESSION['examnumber'];?></a>
							</dd>
							
							<dd>
								<a href="javascript:void(0);"><?php echo  "权限:".$_SESSION['power'];?></a>
							</dd>
						
						</dl>
					</li>
					<li class="layui-nav-item">
						<a href="../inc/logout.php">退了</a>
					</li>
				</ul>
			</div>
			

</html>